﻿using System;
using System.Web.UI;

namespace shfa.snomtastic.admin.controls
{
    public partial class FileUpload : System.Web.UI.Page
    {
        public string FilePath
        {
            get { return Server.MapPath("../../firmware/"); }
        }

        protected void Page_Load(object sender, EventArgs e) { }

        protected void ibUpload_Click(object sender, ImageClickEventArgs e)
        {
            if (fuFirmware.HasFile)
            {
                fuFirmware.SaveAs(FilePath + fuFirmware.FileName);
                hfUploadedFile.Value = fuFirmware.FileName;
            }
        }


    }
}
